package com.syt.model.user;

import com.baomidou.mybatisplus.annotation.*;
import com.syt.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 就诊人表
 * </p>
 *
 * @author xx
 * @since 2023-02-20
 */
@Getter
@Setter
@TableName("patient")
@ApiModel(value = "Patient对象", description = "就诊人表")
public class Patient  extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("证件类型")
    @TableField("certificates_type")
    private String certificatesType;

    @ApiModelProperty("证件编号")
    @TableField("certificates_no")
    private String certificatesNo;

    @ApiModelProperty("性别")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty("出生年月")
    @TableField("birthdate")
    private LocalDate birthdate;

    @ApiModelProperty("手机")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("是否结婚")
    @TableField("is_marry")
    private Integer isMarry;

    @ApiModelProperty("省code")
    @TableField("province_code")
    private String provinceCode;

    @ApiModelProperty("市code")
    @TableField("city_code")
    private String cityCode;

    @ApiModelProperty("区code")
    @TableField("district_code")
    private String districtCode;

    @ApiModelProperty("详情地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("联系人姓名")
    @TableField("contacts_name")
    private String contactsName;

    @ApiModelProperty("联系人证件类型")
    @TableField("contacts_certificates_type")
    private String contactsCertificatesType;

    @ApiModelProperty("联系人证件号")
    @TableField("contacts_certificates_no")
    private String contactsCertificatesNo;

    @ApiModelProperty("联系人手机")
    @TableField("contacts_phone")
    private String contactsPhone;

    @ApiModelProperty("就诊卡号")
    @TableField("card_no")
    private String cardNo;

    @ApiModelProperty("是否有医保")
    @TableField("is_insure")
    private Integer isInsure;

    @ApiModelProperty("状态（0：默认 1：已认证）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("逻辑删除(1:已删除，0:未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;


}
